package cn.gogoyc.org.controller;

import cn.gogoyc.system.domain.SystemDictionaryDetail;
import cn.gogoyc.system.service.SystemDictionaryDetailService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 字典的单独接口,未合并!!
 * @author Yang
 * @date 2023/2/2 4:26
 */
@Controller
@RequestMapping("/detail")
public class DetailsController {
    @Autowired
    private SystemDictionaryDetailService service;

    @GetMapping("/{id}")
    @ApiOperation(value = "接口:查询单个对象")
    @ResponseBody
    public List<SystemDictionaryDetail> findOne(@PathVariable("id")Long id){
        return service.getDetails(id);
    }
}
